﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace BW.WMS.Migrations
{
    /// <inheritdoc />
    public partial class 自动生成 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Connector",
                table: "appDoccodeModel",
                type: "longtext",
                nullable: false)
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<long>(
                name: "CurrentSequence",
                table: "appDoccodeModel",
                type: "bigint",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<string>(
                name: "DateField",
                table: "appDoccodeModel",
                type: "longtext",
                nullable: false)
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<DateTime>(
                name: "LastGeneratedDate",
                table: "appDoccodeModel",
                type: "datetime(6)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "RuleName",
                table: "appDoccodeModel",
                type: "longtext",
                nullable: false)
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Connector",
                table: "appDoccodeModel");

            migrationBuilder.DropColumn(
                name: "CurrentSequence",
                table: "appDoccodeModel");

            migrationBuilder.DropColumn(
                name: "DateField",
                table: "appDoccodeModel");

            migrationBuilder.DropColumn(
                name: "LastGeneratedDate",
                table: "appDoccodeModel");

            migrationBuilder.DropColumn(
                name: "RuleName",
                table: "appDoccodeModel");
        }
    }
}
